﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Mapping;

namespace NHibernate.Audit.Mapping
{
    public static class TableExtensions
    {

        public static Column GetColumn(this Table table, string name)
        {
            return (from col in table.ColumnIterator
                    where col.Name == name 
                    select col).FirstOrDefault();
        }

    }
}
